﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Uaf.Core.Views
{
	public class ViewInfo : INotifyPropertyChanged
	{
		private string _text;
		public virtual string Text 
		{
			get { return _text; }
			set
			{
				if (_text != value)
				{
					_text = value;
					OnPropertyChanged("Text");
				}
			}
		}

		private object _image;
		public virtual object Image
		{
			get { return _image; }
			set
			{
				if (_text != value)
				{
					_image = value;
					OnPropertyChanged("Image");
				}
			}
		}

		private string _description;
		public virtual string Description
		{
			get { return _description; }
			set
			{
				if (_description != value)
				{
					_description = value;
					OnPropertyChanged("Description");
				}
			}
		}

		#region INotifyPropertyChanged Members

		public event PropertyChangedEventHandler PropertyChanged;
		protected void OnPropertyChanged(string name)
		{
			if (PropertyChanged != null)
				PropertyChanged(this, new PropertyChangedEventArgs(name));
		}

		#endregion

	}
}
